package br.com.usjt.tcc.schedule.controller;

import javax.inject.Inject;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import br.com.caelum.vraptor.Controller;
import br.com.caelum.vraptor.Result;
import br.com.caelum.vraptor.quartzjob.CronTask;

@Controller
public class TaskTestController {// implements CronTask {

	// http://localhost:8080/PetSchedule/jobs/configure

	private static final Logger logger = LoggerFactory
			.getLogger(TaskTestController.class);

	@Inject
	private Result result;

//	@Override
	public void execute() {
		logger.debug("OK!!!!!!!!" + getClass().getSimpleName());
		result.nothing();
	}

//	@Override
	public String frequency() {
		 return "*/1 * * * * ?";
//		return "*/5 * * * * ?";
		// return "0 0/15 * * * ?";
	}
}
